home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / sox / com / commerceone / CBL / n1_0 / Payment.mod < prev    next >
Encoding:
Extensible Markup Language  |  2000-07-03  |  6.2 KB  |  160 lines  |  [STrk/SCPL]

  1. <?xml version="1.0"?>
  2. <!DOCTYPE schema SYSTEM "urn:x-commerceone:document:com:commerceone:xdk:xml:schema.dtd$1.0">
  3.  
  4. <schema uri="urn:x-commerceone:document:com:commerceone:CBL:CBL.sox$1.0" >
  5.  
  6. <intro>
  7. <p>Copyright Notice</p>
  8. <p>Common Business Library 2.0<br/>
  9. Copyright 1999 Commerce One, Inc.</p>
  10. <p>Permission is granted to use, copy, modify and distribute the DTD's, schemas
  11. and modules in the Commerce One Common Business Library Version 2.0 subject to the terms
  12. and conditions specified at http://www.marketsite.net/xml/cbl/copyright.html</p> 
  13. </intro>
  14.  
  15. <!-- 
  16. This is based on the EANCOM's
  17. PAI = Payment instructions
  18. PAT = Payment term basis
  19. EDI
  20.  
  21. Example: 2 % 10 net 30 Invoice Date
  22. which means: 
  23. The amount is due in 30 days from Invoice Day.
  24. Take 2% off the amount if paid within 10 days.
  25.  
  26. PaymentMean         = Invoice
  27. PaymentTerm         = Discount
  28. DiscountPercent        = 2
  29. DiscountDaysDue        = 10
  30. PaymentTimeReference    = InvoiceDate
  31. NetDaysDue        = 30
  32. NetTimeRef        = InvoiceDate
  33.  -->
  34.  
  35. <!--  PaymentMean name is taken from EDIFACT's PAI structure  -->
  36. <datatype name="PaymentMeanCode">
  37.     <explain><p>EDIFACT Data Element 4461. The payment type/mean.</p></explain>
  38.     <enumeration datatype="NMTOKEN">
  39.         <option>Other</option><!-- Mutually Defined -->
  40.         <option>COD</option><!-- 10 In cash. Cash On Delivery (COD) -->
  41.         <option>Check</option><!-- 20 Cheque -->
  42.         <option>CreditCard</option><!-- 11E Credit Card (EAN Code) -->
  43.         <option>DebitCard</option><!-- 12E Debit Card (EAN Code) -->
  44.         <option>Invoice</option><!-- 13E Payment terms defined in invoice(EAN) -->
  45.     </enumeration>
  46. </datatype>
  47.  
  48. <datatype name="PaymentTermCode">
  49.     <explain><p>EDIFACT Data Element 4279.The payment type qualifier.</p></explain>
  50.     <enumeration datatype="NMTOKEN">
  51.         <option>Other</option><!-- Mutually Defined,18 Previously agreed upon -->
  52.         <option>Basic</option><!-- 1 Basic -->
  53.         <option>FixedDate</option><!-- 3 Fixed date -->
  54.         <option>BasicDiscount</option><!-- 8 Basic discount offered -->
  55.         <option>Instant</option><!-- 10 Instant. Payment is due on receipt of invoice -->
  56.         <option>Discount</option><!-- 22 Discount. Payment conditions related to discounts for advanced payments. -->
  57.     </enumeration>
  58. </datatype>
  59.  
  60. <datatype name="PaymentTimeReference">
  61.     <enumeration datatype="NMTOKEN">
  62.         <option>Other</option><!-- Mutually Defined -->
  63.         <option>InvoiceDate</option><!-- 5 = Date of invoice -->
  64.     <option>SpecifiedDate</option>
  65.     <option>ShipmentDate</option><!-- 81 = Date of shipment as evidenced by the transport document(s) -->
  66.     <option>GoodsReceivedByBuyerDate</option><!-- 21=Date goods received by buyer -->
  67.     <option>TransportArrivalDate</option><!-- 26=Date of arrival of transport -->
  68.     </enumeration>
  69. </datatype>
  70.  
  71. <datatype name="CardTypeCode">
  72.     <enumeration datatype="NMTOKEN">
  73.         <option>Other</option><!-- Other Card Type -->
  74.         <option>AMEX</option><!-- American Express -->
  75.         <option>VISA</option><!-- VISA -->
  76.         <option>MC</option><!-- Master Card -->
  77.         <option>Discover</option><!-- Discover -->
  78.         <option>JCB</option><!-- JCB -->
  79.         <option>Diners</option><!-- Diners -->
  80.     </enumeration>
  81. </datatype>
  82.  
  83. <elementtype name="CardInfo">
  84.     <model>
  85.         <sequence>
  86.             <!--  REF01 M    ID    2/2 E4 -  charge card number
  87.              REF02    M    AN    1/30 
  88.               Recommended string length: AlphaNum17  -->
  89.         <element type="string" name="CardNum" />
  90.  
  91.         <!--  REF01 M    ID    2/2 BB - authorization code
  92.              REF02    M    AN    1/30 
  93.              Recommended string length: AlphaNum35  -->
  94.         <element type="string" name="CardAuthCode" occurs="?" />
  95.         
  96.         <!--  REF01 M    ID    2/2 CR - customer reference number
  97.          REF02    M    AN    1/30 
  98.         Recommended string length: AlphaNum35  -->
  99.         <!--  for transmission of customer-specific info with credit card  -->
  100.         <element type="string" name="CardRefNum" occurs="?" />
  101.             
  102.         <!--  DTM01 M    ID    3/3 036 - charge card expiration date (conditional)
  103.          DTM02 C    DT    6/6    YYMMDD  -->
  104.         <element type="datetime"   name="CardExpirationDate" occurs="?" />
  105.  
  106.         <!--  Amex, Visa, MC, etc. This is a required if
  107.         payment type is credit card or debit card  -->
  108.         <element type="CardTypeCode" name="CardType" occurs="?" />
  109.         
  110.         <!--  CardTypeOther is specified only if CardType='Other' 
  111.             Recommended string length: AlphaNum70  -->
  112.         <element type="string" name="CardTypeOther" occurs="?" />
  113.             
  114.         <!--  C1 addition. Name printed on the card. Max 30 chars 
  115.             Recommended string length: AlphaNum35  -->
  116.         <element type="string" name="CardHolderName" occurs="?" />
  117.         </sequence>
  118.     </model>
  119. </elementtype>
  120.  
  121. <elementtype name="Payment">
  122.     <model>
  123.         <sequence>
  124.             <!--   Indication of the instrument of payment   -->
  125.         <element type="PaymentMeanCode" name="PaymentMean" />
  126.         
  127.         <!--  PaymentMeanOther is specified if PaymentMean='Other' 
  128.             Recommended string length: AlphaNum70  -->
  129.         <element type="string" name="PaymentMeanOther" occurs="?" />
  130.     
  131.         <!--  Identification of the type of payment terms.  -->    
  132.         <element type="PaymentTermCode" name="PaymentTerm" />
  133.  
  134.         <!--  PaymentTermOther is specified if PaymentTerm='Other' 
  135.             Recommended string length: AlphaNum70  -->
  136.         <element type="string" name="PaymentTermOther" occurs="?" />            
  137.         <element type="Decimal10_4" name="DiscountPercent" occurs="?" />
  138.         <element type="int" name="DiscountDaysDue" occurs="?" />
  139.         <element type="PaymentTimeReference" name="DiscountTimeRef" occurs="?" />
  140.         
  141.         <!--  Recommended string length: AlphaNum70  -->
  142.         <element type="string" name="DiscountTimeRefOther" occurs="?" />
  143.         
  144.         <!--  DiscountDueDate is rarely used. Most of the time,
  145.             we will use the DiscountDaysDue + DiscountTimeRef  -->
  146.         <element type="datetime" name="DiscountDueDate" occurs="?" />
  147.  
  148.         <element type="int" name="NetDaysDue" occurs="?" />
  149.         <element type="PaymentTimeReference" name="NetTimeRef" occurs="?" />
  150.         
  151.         <!--  Recommended string length: AlphaNum70  -->
  152.         <element type="string" name="NetTimeRefOther" occurs="?" />
  153.             
  154.             <!--  this field is required for credit/debit card payment type  -->
  155.             <element type="CardInfo" occurs="?" />       
  156.     </sequence>
  157.     </model>
  158. </elementtype>
  159. </schema>
  160.